package player

func BroadCastList(list []string, data interface{}) {
	for _, item := range list {
		BroadData(item, data)
	}
}

func BroadData(uid string, data interface{}) {
	p, ok := PlayersModule.GetPlayer(uid)
	if !ok {
		return
	}
	p.Send(data)
}

func ChangeUserSlotActRankGroup(uid string, newGroupId int64) {
	p, ok := PlayersModule.GetPlayer(uid)
	if !ok {
		return
	}
	p.User.ChangeUserGroup(newGroupId)
}
